<template>
  <div>
    <div class="topsearch">
      <p>尖叫设计</p>
      <van-search placeholder="搜索我的尖叫好物" />
    </div>
    <ul class="navigation">
      <li
        active-class="navcolor"
        class="navgate"
        v-for="(data,index) in datalist"
        :key="index"
      >{{data.name}}</li>
    </ul>
  </div>
</template>
<script>
import Vue from 'vue'
import { Search } from 'vant'

Vue.use(Search)
export default {
  data () {
    return {
      datalist: [
        {
          goto: '/',
          name: '推荐'
        },
        {
          goto: '/',
          name: '品质空间'
        },
        {
          goto: '/',
          name: '居家好物'
        }
      ]
    }
  }
}
</script>
<style lang="scss">
.topsearch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 20px;
}
.navigation {
  display: flex;
  justify-content: space-around;
}
.navgate {
  padding: 10px 0 10px 0;
}
</style>
